package lxbAdmin.userSystem.server.impl;

import lxbAdmin.userSystem.dao.MenuMapper;
import lxbAdmin.userSystem.entity.MenuInfo;
import lxbAdmin.userSystem.server.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<MenuInfo> findAllMenu() {
        return menuMapper.findAllMenu();
    }

    @Override
    public void addMenu(MenuInfo userMenu) {
        menuMapper.addMenu(userMenu);
    }

    @Override
    public MenuInfo findByName(String str) {
        return menuMapper.findByName(str);
    }
}
